<template>
  <div class="header">
    <div class="hd container">
      <div class="logo">
        <div class="font">
          <p>给您一个绿色的家</p>
          <p>FangDiChan</p>
        </div>
        <h1>
          <img src="../assets/logo.png" alt="" />
        </h1>
        <p>阿巴阿巴控股</p>
      </div>
      <div class="nav">
        <ul>
          <li><router-link to="/home">首页</router-link></li>
          <li><router-link to="/slot">房产经纪</router-link></li>
          <li><router-link to="/categories">地产分类</router-link></li>
          <li><router-link to="/news">新闻中心</router-link></li>
          <li><router-link to="/agents">诚聘英才</router-link></li>
          <li><router-link to="/czyc">关于我们</router-link></li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>

.header {
  position: sticky;
  top: 0;
  // opacity: 0.5;
  width: 100%;
  z-index: 666;
  border-bottom: 1px solid #e4e4e4;
  background-color:rgba(255, 255, 255);
  box-shadow: 3px 3px 10px #e4e4e4;
  .hd {
    @font-face {
      font-family: "站酷快乐体2016修订版";
      font-weight: 400;
      src: url("//at.alicdn.com/wf/webfont/HBIApeiBJRJc/13zkqDvW1JTEw0k7RU_db.woff2")
          format("woff2"),
        url("//at.alicdn.com/wf/webfont/HBIApeiBJRJc/MEyJXpNaDfugyYn_iu9LO.woff")
          format("woff");
      font-display: swap;
    }
    display: flex;
    align-items: center;
    height: 70px;

    .logo {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      .font {
        margin: 10px 0;
        margin-left: 20px;
        margin-right: 10px;
        padding-top: 7px;
        p:last-child {
          font-size: 18px;
        }
        p:first-child {
          width: 100%;
          display: inline-block;
          text-align: right;
          font-size: 12px;
          transform: scale(0.6);
        }
      }
      >p{
        font-family: "站酷快乐体2016修订版";
        margin-top: 13px;
        margin-left: 10px;
        font-size: 18px;
        font-weight: bold;
        color: rgb(114, 109, 108);
      }
      /* CDN 服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
      font-family: fangsong;
      color: rgb(114, 109, 108);
      img {
        width: 50px;
        height: 40px;
        
      }
    }
    .nav {
      flex: 1;
      height: 100%;
      margin-left: 80px;
      ul {
        font-size: 18px;
        display: flex;
        line-height: 70px;
        height: 100%;
        li {
          width: 90px;
          text-align: center;
          height: 100%;
          margin-right: 20px;
          padding: 0 10px;
          color: rgb(114, 109, 108);
          transition: all 0.3s;
          cursor: pointer;
          a{
            display: inline-block;
            width: 100%;
            height: 100%;
            text-decoration: none;
            &:hover{
              color: black;
            }
          }
          &:hover {
            border-bottom: 3px solid orange;
            background-color: rgba(227, 227, 227,0.5);
            transform: scale(1.1);
          }
        }
      }
    }
  }
}
</style>